//
//  TopicReply.h
//  MGameTribe
//
//  Created by 杨敏 on 13-6-13.
//  Copyright (c) 2013年 YangMin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TopicQuote.h"

typedef enum {
    PlatForm_android,
    PlatForm_ios,
}PlatForm;

@interface TopicReply : NSObject

@property(nonatomic,retain)NSString *tie_id;//帖子的ID
@property(nonatomic,retain)NSString *user_id;//用户uid
@property(nonatomic,retain)NSString *discuz_id;//社区id

@property(nonatomic,retain)NSString *comment_id;//回复id
@property(nonatomic,retain)NSString *content;//内容
@property(nonatomic,retain)NSString *formmatedTimeStr;
@property(nonatomic,retain)NSString *nickname;//回帖人的昵称
@property(nonatomic,retain)NSString *floor;//楼层
@property(nonatomic,retain)NSString *rank;//用户等级

@property(nonatomic,retain)NSURL *audioUrl;//有录音时的url
@property(nonatomic,retain)NSString *audio;//没录音时时空字符串
@property(nonatomic,retain)NSString *audioLength;//

@property(nonatomic,assign) Gender gender;//用户性别

@property(nonatomic,retain)NSURL *ufaceUrl;//回帖人的头像
@property(nonatomic,retain)NSURL *pictrueUrl;//图片的url

@property(nonatomic,assign) CGFloat imgheight;//图片的高度
@property(nonatomic,assign) CGFloat imgwidth;//图片的宽度

@property(nonatomic,retain)TopicQuote *quote;//回帖数据里的自回帖数据
@property(nonatomic,assign)PlatForm platform;//回帖来自于，0是安卓，1是苹果

@property(nonatomic,assign)int state;//是否显示，-1时不显示

+(TopicReply *)topicReplyWithData:(NSDictionary *)data;

@end
